package monster.flight.comm.entity.dao;
import java.util.List;

import java.util.Map;

import monster.comm.exception.ServiceException;
import monster.flight.comm.entity.vo.Xt_dict;
public interface Xt_dictDAO {

	 /**
	*@Description: 根据查询条件返回po
	*@param id
	*@return Xt_dict_detail
	
	*/
	 public List<Xt_dict> selectPage_DictListByPo(Map<String,Object> map);
	 /**
	  * @author lzy
	  * @Description:分页用
	  * @param po
	  * @return
	  * @throws ServiceException
	  */
	 public int getRowCount(Xt_dict po);
	 /**
	  * @author lzy
	  * @Description:新增一题记录
	  * @param po
	  * @
	  */
	 public void insert(Xt_dict po);
	 
	 /**
	  * @author lzy
	  * @Description:判断数据字典编码是否存在
	  * @param xt_dict
	  * @return
	  */
	 public int dict_codeExist(String  dict_code); 
	 /**
		*@author lzy
		*@Description: 根据主键更新数据字典
		*@param   Xt_dict 
		*@return void
		*@throws ServiceException
		 */	 
	 public void update(Xt_dict po);
	 /**
		*@author lzy
		*@Description: 根据主键删除数据字典
		*@param   Xt_dict 
		*@return void
		*@throws ServiceException
		 */		 
	 public void delete(Xt_dict po);
	 /**
	  * 根据主键得到一条数据
	  * @param po
	  * @return
	  * @
	  */
	 public Xt_dict getPoByKey(String key);
	 /**
	 * 修改数据字典类型为树状
	 * @param dict_sn
	 */
	 public void updateDictTypeTree(String dict_sn);
}
